-
Notifications
You must be signed in to change notification settings - Fork 38.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add synchronous garbage collection #38676
Conversation
Looks like all of |
ah, ok. I found the other pulls. I understand now. |
ac5d2c1
to
392210d
Compare
7326309
to
916b167
Compare
916b167
to
1b772f2
Compare
1b772f2
to
445fe17
Compare
bf6e5d9
to
a3a8f2e
Compare
Rebased. Reapplying the lgtm. |
How did you manage to get this comment and not merge?? |
Based on output, it's not a bug, but you need to log the actual error you got during the verification.
You did orphan it, but you covered up the actual error you got during verification |
@k8s-bot gce etcd3 e2e test this |
Thanks for taking care of the tests. Added to the TODO to improve the log message of that test. |
[APPROVALNOTIFIER] This PR is NOT APPROVED The following people have approved this PR: caesarxuchao, k8s-merge-robot Needs approval from an approver in each of these OWNERS Files:
We suggest the following people: |
Rebased 3 times after got the lgtm. Adding p2 label now. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
@caesarxuchao: The following test(s) failed:
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Automatic merge from submit-queue (batch tested with PRs 38676, 41765, 42103, 41833, 41702) |
Automatic merge from submit-queue (batch tested with PRs 38676, 41765, 42103, 41833, 41702) Add synchronous garbage collection Fix kubernetes/kubernetes#29891. Split into five commits: 1. generated: don't need review 2. API: got reviewed in #38678, i addressed @lavalamp's comments there. 3. registry changes: @nikhiljindal could you help take a look? 4. gc changes: reviewed by @deads2k in #38679. It needs another pass. 5. tests: @lavalamp @deads2k could take a look? TODO: - [ ] Update doc. Note that the existing doc has been refactored in kubernetes/website#2488. - [ ] add an admission controller to check if a user can set OwnerReference.BlockOwnerDeletion - [ ] kubernetes/kubernetes#38676 (comment) - [ ] split the unit tests garbagecollector_test.go according to the components tested. - [ ] try if it's practically safe to use the cached object status in attempToDeleteItem(), after synchronous GC feature is stable. (Also see kubernetes/kubernetes#38676 (comment)) - [ ] add blockOwnerDeletion for rs adoption kubernetes/kubernetes#38679 (comment) - [ ] https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/38676/pull-kubernetes-e2e-gce-etcd3/20101/ (improve the log message) ```release-note Added foreground garbage collection: the owner object will not be deleted until all its dependents are deleted by the garbage collector. Please checkout the [user doc](https://kubernetes.io/docs/concepts/abstractions/controllers/garbage-collection/) for details. deleteOptions.orphanDependents is going to be deprecated in 1.7. Please use deleteOptions.propagationPolicy instead. ``` Kubernetes-commit: 3afefae02a0588654693de27ef5387c1f9ab5f01
Fix #29891.
Split into five commits:
TODO: